You can run the query in any servers. Select the target connection, database and/or schema from the drop-down menu on the toolbar, and then click
. If the query statement is correct, the query executes and, if the query statement is supposed to return data, the Result tab opens with the data returned by the query. If an error occurs while executing the query, execution stops, the appropriate error message is displayed.
The Result tab displays the result data, returned by the query, as a grid. Data can be displayed in two modes: Grid View and Form View. See Data Viewer for details.
Note: Navicat supports to return 10 result sets.
You can choose to show results below the editor or in a new tab by choosing View -> Results -> Show Below Editor or Show in New Page.
You are allowed to run selected portion of query, just simply highlight SQL in SQL Editor and click
. To run the current statement your cursor is on (position the cursor within the desired statement), just simply click and hold the
button and select Run Current Statement.
To customize the names of the result tabs, simply add -- NAME:tab_name or /*NAME:tab_name*/ before each SELECT statement in the SQL Editor.
To show the profile and status when running the query, simply choose View -> Show Profile and Status and click
on the toolbar.
The Profile tab displays the query profile: Table lock, System lock, Statistic, etc.
Note: For MySQL 5.0, supported from 5.0.37. For MySQL 5.1, supported from 5.1.24.
The Status tab displays the query status: Bytes received, Bytes sent, etc.